/** 
* Copyright (C) 2012-2018 ZEEI Inc.All Rights Reserved.
* 项目名称：pls
* 文件名称：EnvironmentQualityGisServiceImpl.java
* 包  名  称：com.zeei.gis.service.imp
* 文件描述：TODO 请修改文件描述
* 创建日期：2018年1月26日下午1:37:53
* 
* 修改历史
* 1.0 jiangqingpeng 2018年1月26日下午1:37:53 创建文件
*
*/
package com.zeei.gis.service.imp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zeei.gis.dao.EnvironmentQualityGisDao;
import com.zeei.gis.service.EnvironmentQualityGisService;
import com.zeei.gis.vo.EnvironmentQualityGisVO;

/**
 * @类型名称：EnvironmentQualityGisServiceImpl
 * @类描述：TODO 环境质量排污管理
 * @功能描述：TODO 环境质量排污管理
 * @创建作者：jiangqingpeng
 */
@Service("environmentQualityGisService")
public class EnvironmentQualityGisServiceImpl implements EnvironmentQualityGisService{

	@Autowired
	EnvironmentQualityGisDao environmentQualityGisDao;
	
	@Override
	public List<EnvironmentQualityGisVO> queryAverageConcentrationRank(
			EnvironmentQualityGisVO environmentQualityGisVO) {
		String year = (Integer.parseInt(environmentQualityGisVO.getYear()) - 1) + "";
		environmentQualityGisVO.setPreYear(year);
		List<EnvironmentQualityGisVO> list = environmentQualityGisDao.queryAverageConcentrationRank(environmentQualityGisVO);
		return list;
	}

	@Override
	public List<EnvironmentQualityGisVO> queryAirStationAverageConcentrationRank(
			EnvironmentQualityGisVO environmentQualityGisVO) {
		String year = (Integer.parseInt(environmentQualityGisVO.getYear()) - 1) + "";
		environmentQualityGisVO.setPreYear(year);
		List<EnvironmentQualityGisVO> list = environmentQualityGisDao.queryAirStationAverageConcentrationRank(environmentQualityGisVO);
		return list;
	}

}
